﻿
--#include "data\functions\ExpandFunc\ActorReliveCommon.lua" once

MiscsImplement.ClickReliveIcon = function (sysarg, msgid, packet)
	local reliveType = DataPack.readByte(packet) --复活类型，1原地复活(先消耗物品再消耗元宝) 2安全复活
	if reliveType == 1 then			-- 原地复活
		OnPlaceRelive(sysarg)
	elseif reliveType == 2 then 
		safeResurrection(sysarg)	-- 2安全复活
	end

	-- 复活退出活动处理
	reliveExitActivityHandle(sysarg)
end

MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cClickReliveIcon, MiscsImplement.ClickReliveIcon)